fix: skip graphql query if parameter is null#188
Conversation
|
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
|
|
Your PR has been merged! App is being published. 🚀 After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:
After that your app will be updated on all accounts. For more information on the deployment process check the docs. 📖 |



What problem is this solving?
We were observing the error
Variable "$email" of required type "String!" was not providedon the logs and this PR avoid calls that were causing the error.Now the
getBindingquery is skipped if theuserEmailparameter is empty (resulting in the same behaviour)How to test it?
Login and go to My Account (Profile) page
Looking at the Network tab of the browser inspector you can observe the error is not happening (compared to a workspace without the fix)
Workspace